package cn.edu.ctbu.simplescoremanagementsystem.service;

import cn.edu.ctbu.simplescoremanagementsystem.domain.Course;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface CourseService {

    List<Course> findAll();
    Course findByID(Integer id);

    Course insert(Course course);

    Course update(Course course);

    Page<Course> getByPage(Pageable pageable);

    Page<Course> getByPage(Example<Course> course, Pageable pageable);

}
